package com.example.yimai.controller;

import com.example.yimai.service.impl.ElasticsearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/elasticsearch")
public class ElasticsearchController {

    @Autowired
    private ElasticsearchService elasticsearchService;

    //全量导入数据
    @RequestMapping("/")
    public String fullImport()
    {
        return elasticsearchService.fullImport();
    }

}
